package com.llm.travel_agent_assistant.controller;

import com.llm.travel_agent_assistant.dto.Result;
import com.llm.travel_agent_assistant.service.TravelPlanService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/travel")
public class TravelController {

    @Resource
    private TravelPlanService travelPlanService;

    @DeleteMapping("/delete_travel_plan")
    public Result deleteTravelPlan(@RequestParam("planId") String planId) {
        return travelPlanService.deletePlan(planId);
    }
}